package com.onpositive.page.pagerendering;

public class CommitPageRenderer {

	private final static String PARAM_NAME = "file";
	private final static String DEST_URI = "commit.res";

	public String getContent(String destURL, String paramName) {
		StringBuilder sb = new StringBuilder();
		sb.append("== Upload File Form ==\n");
		sb.append("{{{\n");
		sb.append("#!html\n");
		sb.append("<form method=\"post\" action=\"" + destURL + "\" enctype=\"multipart/form-data\">\n");
		sb.append("<input type=\"file\" name=\"" + paramName + "\"/>\n");
		sb.append("<input type=\"submit\" name =\"submit\"/>\n");
		sb.append("<br>");
		sb.append("<br>");
		sb.append("<br>");
		sb.append("<br>");
		sb.append("</form>\n");
		sb.append("}}}\n");

		return sb.toString();
	}
}
